﻿using Stee.CAP8.Saga.Sample.Order.DTO;
using Stee.CAP8.Saga.Sample.Order.DTO.Requests;
using Stee.CAP8.Saga.Sample.Order.DTO.Response;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Stee.CAP8.Saga.Sample.Order.Services
{
    public interface IOrderService
    {
        Task<DataResponseObject<OrderDTO>> GetOrderById(int id);
        Task<DataResponseObject<IEnumerable<OrderDTO>>> GetOrders();
        Task<DataResponseObject<OrderDTO>> CreateOrder(OrderCreateRequest order);

        Task<DataResponseObject<OrderDTO>> UpdateOrderStatus(int id, Status status);
    }
}
